using BackData;
using Domain.DTOs.ProcessSteps;
using MediatR;

namespace Team.API.Applocation.Command.Makesteps
{
    /// <summary>
    /// 更新成品工艺工序命令
    /// </summary>
    public class UpdateMakestepCommand : IRequest<APIResult<MakestepListDTO>>
    {
        /// <summary>主键Id</summary>
        public long Id { get; set; }

        /// <summary>工序名称</summary>
        public string Processname { get; set; }

        /// <summary>工序编号</summary>
        public string Processcode { get; set; }

        /// <summary>工序描述</summary>
        public string Processdescription { get; set; }

        /// <summary>版本号</summary>
        public string Version { get; set; } = "V1.0";

        /// <summary>成品名称</summary>
        public string Goodsname { get; set; }

        /// <summary>产出物</summary>
        public string Deliverables { get; set; }

        /// <summary>负责人</summary>
        public string Kahuna { get; set; }

        /// <summary>部门</summary>
        public string Departmentname { get; set; }

        /// <summary>启用状态</summary>
        public bool IsUse { get; set; } = true;

        /// <summary>工序时长</summary>
        public short SpanTime { get; set; }

        /// <summary>设备Id</summary>
        public long EquipmentId { get; set; } = 1;
        /// <summary>
        /// 当前操作人（来自前端 pinia）
        /// </summary>
        public string? CurrentUserName { get; set; }
    }
}

